package com.cl.it.mbg.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 新闻
 * </p>
 *
 * @author kehui
 * @since 2022-01-26
 */
@ApiModel(value = "News对象", description = "新闻")
public class News implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("公司名称")
    private String name;

    @ApiModelProperty("公司社会信用代码")
    private String code;

    @ApiModelProperty("作者")
    private String author;

    @ApiModelProperty("新闻日期")
    private String newsDate;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("类型")
    private String category;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("来源")
    private String source;

    @ApiModelProperty("来源方")
    private String sourceFrom;

    @ApiModelProperty("来源地址")
    private String sourceUrl;

    @ApiModelProperty("点赞数，空则表示没有该项")
    private Long digCount;

    @ApiModelProperty("评论数，空则表示没有该项")
    private Long commentCount;

    @ApiModelProperty("阅读数，空则表示没有该项")
    private Long readCount;

    @ApiModelProperty("收藏数，空则表示没有该项")
    private Long favoriteCount;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private String tags;

    private String dataSource;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getNewsDate() {
        return newsDate;
    }

    public void setNewsDate(String newsDate) {
        this.newsDate = newsDate;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getSourceFrom() {
        return sourceFrom;
    }

    public void setSourceFrom(String sourceFrom) {
        this.sourceFrom = sourceFrom;
    }

    public String getSourceUrl() {
        return sourceUrl;
    }

    public void setSourceUrl(String sourceUrl) {
        this.sourceUrl = sourceUrl;
    }

    public Long getDigCount() {
        return digCount;
    }

    public void setDigCount(Long digCount) {
        this.digCount = digCount;
    }

    public Long getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(Long commentCount) {
        this.commentCount = commentCount;
    }

    public Long getReadCount() {
        return readCount;
    }

    public void setReadCount(Long readCount) {
        this.readCount = readCount;
    }

    public Long getFavoriteCount() {
        return favoriteCount;
    }

    public void setFavoriteCount(Long favoriteCount) {
        this.favoriteCount = favoriteCount;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public String getDataSource() {
        return dataSource;
    }

    public void setDataSource(String dataSource) {
        this.dataSource = dataSource;
    }

    @Override
    public String toString() {
        return "News{" +
        "id=" + id +
        ", name=" + name +
        ", code=" + code +
        ", author=" + author +
        ", newsDate=" + newsDate +
        ", title=" + title +
        ", category=" + category +
        ", content=" + content +
        ", source=" + source +
        ", sourceFrom=" + sourceFrom +
        ", sourceUrl=" + sourceUrl +
        ", digCount=" + digCount +
        ", commentCount=" + commentCount +
        ", readCount=" + readCount +
        ", favoriteCount=" + favoriteCount +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", tags=" + tags +
        ", dataSource=" + dataSource +
        "}";
    }
}
